package com.zhou.sys.web.controller;


import com.zhou.common.base.BaseController;
import com.zhou.sys.common.sso.annotation.Action;
import com.zhou.sys.common.sso.annotation.Login;
import com.zhou.sys.dao.entity.Area;
import com.zhou.sys.service.AreaService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.hibernate.validator.internal.util.logging.Log_$logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 区域表 前端控制器
 * </p>
 *
 * @author zhou
 * @since 2017-09-23
 */
@Controller
@RequestMapping("/sys/area")
@Api(value = "地区", description = "后台管理")
public class AreaController extends BaseController {

    @Resource
    private AreaService areaService;

    @ApiOperation(value = "测试")
    @RequestMapping(value = "/index", method = RequestMethod.GET)
    public String index(ModelMap modelMap, HttpServletRequest request) {
        _log.info("requset{}",request);
        Area a = areaService.selectById(1);
        modelMap.put("test", a.getName());
        return "manager/index";
    }
	
}
